from django.db import models
from django.contrib import admin


# Create your models here.
class BlogsPost(models.Model):
    title = models.CharField(max_length=150)
    body = models.TextField()
    timestamp = models.DateTimeField()


class BlogPostAdmin(admin.ModelAdmin):
    list_display = ('title', 'timestamp')


class MagicCardPracticeData(models.Model):
    origin_record = models.CharField(max_length=256)
    practice_record = models.CharField(max_length=256)
    cost_time = models.IntegerField()
    #record_time = models.DateTimeField()
    record_time = models.CharField(max_length=30)


class MagicCardSignIn(models.Model):
    sign_in_date = models.DateTimeField()

admin.site.register(BlogsPost, BlogPostAdmin)
